package com.sdu.shanyiapi.db.dao;

import com.sdu.shanyiapi.db.pojo.UserEntity;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;

/**
 * @author lihaopeng
 * @version 1.0
 * @project shanyi-api
 * @description 用户
 * @since 2024/4/13 12:30
 */
public interface UserDao {

    @Transactional
    public int insertUser(UserEntity entity);

    public Integer searchAlreadyRegisteredUserByOpenId(String openId);

    public HashMap searchUserSimpleInfoById(int userId);

}
